Skip to content

refactor(network): drop chain-id reachability probe from obol network status#391

Closed
OisinKyne wants to merge 1 commit intooisin/377-1from
oisin/377-2
Closed

refactor(network): drop chain-id reachability probe from obol network status#391
OisinKyne wants to merge 1 commit intooisin/377-1from
oisin/377-2

Conversation

@OisinKyne
Copy link
Copy Markdown
Contributor

The probe (introduced via #388) was sold as detecting "stale custom RPC
pins from a previous test run", but the symptom it was built to chase
— eRPC returning ERC721NonexistentToken on a freshly-minted agent ID
— was actually read-side staleness in eRPC, not a stale Anvil fork.
PR #387's Client.WaitForAgent is the correct fix and is already
wired into the CLI register paths.

eth_chainId is also a poor liveness probe: it can't catch lagging
upstreams, and an Anvil fork of base-sepolia returns the same chain
id (84532) as the real chain — exactly the case it was built to
detect.

eRPC already tracks per-upstream health metrics; if we want a future
obol network status reachability column it should parse those, not
redo the work badly in-process.

Changes:

  • internal/network/probe.go, probe_test.go: deleted.
  • cmd/obol/network.go: drop --no-probe / --probe-timeout flags,
    renderUpstreamProbes, uiPrinter, and the time import.

flow-02 and flow-05 still pass: they grep eRPC|Pod|Upstream headers
which remain in the output.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

@bussyjd
Copy link
Copy Markdown
Collaborator

bussyjd commented Apr 29, 2026

Superseded by #386 — all commits from this branch are already present at the tip of integration/pr377-pr381 (verified by git log <branch> ^origin/integration/pr377-pr381 returning empty). Closing to keep the queue tidy. Track final landing on main via #386.

@bussyjd bussyjd closed this Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants